package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.CustomerReturnList;
import com.atguigu.jxc.entity.SaleList;

import java.util.Map;

/**
 * @Author: dongdong lau
 * @CreateTime: 2021/7/25 12:51
 * @Description: 销售管理Service层接口
 */
public interface SaleService {

    /**
     * 新增销售出库表
     * @param saleList
     * @param saleListGoodsStr
     * @return
     */
    public ServiceVO save(SaleList saleList, String saleListGoodsStr);

    /**
     * 客户退货单保存
     * @param customerReturnList
     * @param customerReturnListGoodsStr
     * @return
     */
    public ServiceVO customerReturnSave(CustomerReturnList customerReturnList, String customerReturnListGoodsStr);

    /**
     * 销售单列表展示
     * @param saleNumber
     * @param customerId
     * @param state
     * @param sTime
     * @param eTime
     * @return
     */
    public Map<String, Object> getSaleList(String saleNumber,
                                           Integer customerId,
                                           Integer state,
                                           String sTime,
                                           String eTime);
}
